home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Aminet 35
/
Aminet 35 (2000)(Schatztruhe)[!][Feb 2000].iso
/
Aminet
/
dev
/
src
/
stefanb_src.lha
/
Private_Projects
/
mmureset
/
RemoveKS.c
< prev
next >
Encoding:
Amiga
Atari
Commodore
DOS
FM Towns/JPY
Macintosh
Macintosh JP
Macintosh to JP
NeXTSTEP
RISC OS/Acorn
Shift JIS
UTF-8
Wrap
C/C++ Source or Header
|
1992-09-06
|
578 b
|
21 lines
main()
{
printf("Removing Kickstart...\n");
#asm
machine mc68020
mc68851
xref _LVODisable
xref _LVOSuperState
Start:
move.l $4,a6 ; get ExecBase
jsr _LVODisable(a6) ; disable interrupts
jsr _LVOSuperState(a6) ; go to supervisor mode
clr.l -(sp) ; clear top of stack
pmove (sp),tc ; disable MMU
move.l #$0,$7FFFFFC ; change Kickstart
loop bra loop ; infinite loop
#endasm
}